package com.nit;

import org.im4java.core.ConvertCmd;
import org.im4java.core.IM4JavaException;
import org.im4java.core.IMOperation;

import java.io.IOException;

public class Aa {

    public static void main(String[] args) {
        ConvertCmd cmd = new ConvertCmd();
        //  设置imageMagick安装地址(linux系统下无需指定)
        //cmd.setSearchPath("D:\\Develop\\ImageMagick-7.1.1-Q16-HDRI");

        IMOperation op = new IMOperation();
        op.addImage("/opt/b1f25689-2620-44a8-b1cb-052b774892f0.heic");
        op.addImage("/opt/20230803.jpg");

        try {
            cmd.run(op);
        } catch (IOException | InterruptedException | IM4JavaException e) {
            e.printStackTrace();
        }
        System.out.println("装欢完成");
    }
}
